package cn.liontalk.exception;

import cn.liontalk.common.result.CodeMsg;

/**
 * @author: 周哲
 * @package: cn.liontalk.exception
 * @description:
 * @date: 2019/1/19 18:28
 * @version: V1.0
 */
public class GlobalException extends RuntimeException {

    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg() {
        return codeMsg;
    }

    public void setCodeMsg(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }
}
